package cc.kigh.user.domain.bo;

import cc.kigh.common.core.domain.BaseEntity;
import cc.kigh.common.core.validate.AddGroup;
import cc.kigh.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

/**
 * 用户业务对象 hosp_user
 *
 * @author ruoyi
 * @date 2022-02-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("用户业务对象")
public class UmsUserBo extends BaseEntity {

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    @NotNull(message = "用户id不能为空", groups = { EditGroup.class })
    private Long cid;

    /**
     * 用户名称
     */
    @ApiModelProperty(value = "用户名称", required = true)
    @NotNull(message = "用户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cname;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 状态 1:正常 0:停用
     */
    @ApiModelProperty(value = "状态 1:正常 0:停用", required = true)
    @NotNull(message = "状态 1:正常 0:停用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注", required = true)
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
